#ifndef __OBJECT_H__
#define __OBJECT_H__

#include <gl/glut.h>
#include "Observer.h"
#include "Subject.h"

class Object : public Observer, public Subject
{
private:
	float x, y, z;
public:
	Object(float _x, float _y, float _z) { x = _x; y = _y; z = _z; }
	virtual void Draw()
	{
		glPolygonMode(GL_FRONT, GL_LINE);
		glPolygonMode(GL_BACK, GL_LINE);
	}
	float get_x() { return x; }
	float get_y() { return y; }
	float get_z() { return z; }
	void incr_z(float _z) { z += _z; }
};

#endif